package dtos;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


public class TechresourceDTO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 2554982733014122518L;
	private int id;
	private String name;
	private String ip;
	private String status;
	private int idDomain;
	private int idnumber;
	private List<Integer> techtickets=new ArrayList<>();
	private List<Integer> threshresources=new ArrayList<>();

	public List<Integer> getTechtickets() {
		return techtickets;
	}

	public void setTechtickets(List<Integer> techtickets) {
		this.techtickets = techtickets;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getIdDomain() {
		return idDomain;
	}

	public void setIdDomain(int idDomain) {
		this.idDomain = idDomain;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}


	public List<Integer> getThreshresources() {
		return threshresources;
	}

	public void setThreshresources(List<Integer> threshresources) {
		this.threshresources = threshresources;
	}

	public int getIdnumber() {
		return idnumber;
	}

	public void setIdnumber(int idnumber) {
		this.idnumber = idnumber;
	}
	
	public void addTechticket(int id) {
		this.techtickets.add(id);
	}
	
	public void addThreshresource(int id) {
		this.threshresources.add(id);
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TechresourceDTO other = (TechresourceDTO) obj;
		if (id != other.id)
			return false;
		return true;
	}

	

}
